#
# Copyright 2009 Jeffrey Palm
#

require 'has_a_shared_key'

# Return values from 'run'
RET_JUST_CHECKED       = 0
RET_PLAYED             = 1
RET_PAUSED             = 2
RET_PRINTED_HELP       = 3
RET_REMOVED_SHARED_KEY = 4

# This exposes the interface for instances of Common.  In other words,
# this is what Common instances need to see to be able to do their
# shit.
class CommonInterface < HasASharedKey

  # This is the method that really initiates everything.  This returns
  # one of the RET_ values.
  def run(has_options)  
    eek 'run'
  end  

  def find_track(info)
    eek'find_track'
  end

  def read_info(user=nil)
    eek 'read_info'
  end

  def play_track(track_id)
    eek'play_track'
  end

  def pause_player
    eek 'pause_player'
  end

  def find_the_shared_key
    eek 'find_the_shared_key'
  end
  
end
